package app.framework.front.handler;

import freemarker.template.Configuration;
import org.springframework.context.MessageSource;

/**
 * @author mh.z
 */
public class FrontConfig {
    /** FreeMarker模板引擎配置 */
    private Configuration freeMarkerConfig;
    /** 多语言资源 */
    private MessageSource messageSource;
    /** 页面配置文件的匹配表达式 */
    private String pageConfigLocationPattern;
    /** 多语言资源文件的匹配表达式 */
    private String i18nResourceLocationPattern;
    /** 脚本请求的前缀 */
    private String scriptUrlPrefix;

    public Configuration getFreeMarkerConfig() {
        return freeMarkerConfig;
    }

    public void setFreeMarkerConfig(Configuration freeMarkerConfig) {
        this.freeMarkerConfig = freeMarkerConfig;
    }

    public MessageSource getMessageSource() {
        return messageSource;
    }

    public void setMessageSource(MessageSource messageSource) {
        this.messageSource = messageSource;
    }

    public String getPageConfigLocationPattern() {
        return pageConfigLocationPattern;
    }

    public void setPageConfigLocationPattern(String pageConfigLocationPattern) {
        this.pageConfigLocationPattern = pageConfigLocationPattern;
    }

    public String getI18nResourceLocationPattern() {
        return i18nResourceLocationPattern;
    }

    public void setI18nResourceLocationPattern(String i18nResourceLocationPattern) {
        this.i18nResourceLocationPattern = i18nResourceLocationPattern;
    }

    public String getScriptUrlPrefix() {
        return scriptUrlPrefix;
    }

    public void setScriptUrlPrefix(String scriptUrlPrefix) {
        this.scriptUrlPrefix = scriptUrlPrefix;
    }

}
